package tds.model26;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Client
 * @Description
 * @author tds
 * @Date 2020/2/7 21:58
 * @version 1.0.0
 */
public class Client {
    public static void main(String[] args) {
        // 创建总经理对象（中介者）
        Mediator mediator = new President();

        // 创建开发部，市场部，财务部对象
        Department development = new Development(mediator, "development");
        Department market = new Market(mediator, "market");
        Department finacial = new Finacial(mediator, "finacial");

        // 开发部开发项目了,但需要资金，通过中介者mediator总经理去找财务部要钱了
        development.selfAction();

    }
}
